package com.example.demo.controller.bfzx;

import com.example.demo.common.MessageBody;
import com.example.demo.service.YpbfService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created hongsou
 * author:fh
 * Date:2019/4/28
 * Time:14:04
 * desc:硬盘备份
 **/
@RestController
@RequestMapping("/ypbf/")
public class YpbfController {

    @Autowired
    private YpbfService ypbfService;

    /**
     * @auther: fh
     * @date 2019/4/28 14:12
     * @des 获取硬盘备份任务列表
     */
    @RequestMapping("getYpbfrwList")
    public MessageBody getYpbfrwList(String dalbDm, String bfplDm, String bfQsrq, String bfZzrq) {
        return ypbfService.getYpbfrwList(dalbDm, bfplDm, bfQsrq, bfZzrq);
    }

    /**
     * @auther: fh
     * @date 2019/4/28 14:12
     * @des 获取光盘备份任务列表
     */
    @RequestMapping("getGpbfrwList")
    public MessageBody getGpbfrwList(String dalbDm, String bfplDm, String bfQsrq, String bfZzrq) {
        return ypbfService.getGpbfrwList(dalbDm, bfplDm, bfQsrq, bfZzrq);
    }

    /**
     * @auther: fh
     * @date 2019/4/29 16:36
     * @des 光盘复制任务
     */
    @RequestMapping("getGpfzrwList")
    public MessageBody getGpfzrwList(String dalbDm, String bfQsrq, String bfZzrq) {
        return ypbfService.getGpfzrwList(dalbDm, bfQsrq, bfZzrq);
    }

}
